<?php
/**
 * Created by PhpStorm.
 * User: LI
 * Date: 2015/12/7
 * Time: 14:15
 */
namespace Admin\Model;
use Think\Model;
class DoctorModel extends Model{
    public function getDoctorList($condition, $filed = '*'){
        return $this -> field($filed) -> where($condition) -> select();
    }
    public function updateDoctor($condition, $update){
        return $this -> where($condition) -> save($update);
    }
    public function delDoctor($condition){
        return $this -> where($condition) -> delete();
    }
}